cmake_minimum_required(VERSION 3.1.0 )

project(bag2images)

# Enable C++11
# realsense2 must use C++11
set(CMAKE_CXX_FLAGS "-std=c++11")
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)

# Find RealSense2
find_package(realsense2 REQUIRED)

# Find OpenCV
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

# Main.cpp
add_executable(bag2images Main.cpp)
target_link_libraries(bag2images ${realsense2_LIBRARY}  ${OpenCV_LIBS})
